header
 
Untitled Document
Course: CSC204
   
- Basic OS Theory
- OS – User View
- OS – System View
- DOS
- Linux
- Windows
1
 
Free Online Tutorial ::
To be a center of structured knowledge for all. All instructors are welcome to participate in this knowledge distribution.
 
 
Courses:CSC204
CSC204, 3.1 Process Management
 
3.1.1 Single Tasking
OS Performance Issues
Process Management
Single-Tasking
Sequential Processing
Batch Processing
Multitasking
Multiprogramming
Time Sharing Systems
Cooperative Multitasking
Pre-emptive Multitasking
Context Switching
Single-Tasking vs Multitasking
Memory Management
Physical Memory
Virtual Memory
Page Fault
Trashing
Principle of Locality
Virtual Memory Requirements
I/O Management
I/O System Organization
Direct I/O and Memory Mapped I/O
Direct I/O with Polling
Interrupt Driven Direct I/O
Direct Memory Access
Buffering
 
CSC204, 3.1 Process Management
 
3.1.2 Multitasking

Here are some things to consider related to operating system performance:

http://msdn.microsoft.com/en-us/biztalk/ee621253

 

 
CSC204, 3.1 Process Management
 
CPU Process Management
Processor Management

Introduction
Job Scheduling Versus Process Scheduling
Process Scheduler
Process Identification
Process Status
Process State
Accounting
Process Scheduling Policies  
Process Scheduling Algorithms
Cache Memory
Interrupts

---------------------------


How Does Processor Manager Allocate CPU(s) to Jobs?

Process Manager performs job scheduling, process scheduling and interrupt management.

In single-user systems, processor is busy only when user is executing a job—at all other times it is idle.
Processor management is simple.

In multiprogramming environment, processor must be allocated to each job in a fair and efficient manner.
Requires scheduling policy and a scheduling algorithm.


------

Some Important Terms

Program – inactive unit, such as a file stored on a disk.
To an operating system, a program or job is a unit of work that has been submitted by user.
“Job” is usually associated with batch systems.

 Process (task) – active entity, which requires a set of resources, including a processor and special registers to perform its function.
A single instance of an executable program.


Thread of control (thread) – a portion of a process that can run independently.

Processor ( CPU, central processing unit) –part of machine that performs calculations and executes programs.

Multiprogramming requires that the processor be “allocated” to each job or to each process for a period of time and “deallocated” at an appropriate moment.


----------

Job Scheduling vs. Process Scheduling

Processor Manager has 2 sub-managers:

Job Scheduler
in charge of job scheduling.

Process Scheduler
in charge of process scheduling.


-----------

Job Scheduler

High-level scheduler.
Selects jobs from a queue of incoming jobs.
Places them in process queue (batch or interactive), based on each job’s characteristics.
Goal is to put jobs in a sequence that uses all system’s resources as fully as possible.
Strives for balanced mix of jobs with large I/O interaction and jobs with lots of computation.
Tries to keep most system components busy most of time.


---------

Process Scheduler

Low-level scheduler –  assigns the CPU to execute processes of those jobs placed on ready queue by Job Scheduler.

After a job has been placed on the READY queue by Job Scheduler, Process Scheduler that takes over.
Determines which jobs will get CPU, when, and for how long.
Decides when processing should be interrupted.
Determines queues job should be moved to during execution.
Recognizes when a job has concluded and should be terminated.


---------------

CPU Cycles and I/O Cycles

To schedule CPU, Process Scheduler uses common trait among most computer programs: they alternate between CPU cycles and I/O cycles.


-------

Poisson Distribution Curve

I/O-bound jobs (such as printing a series of documents) have many brief CPU cycles and long I/O cycles.

CPU-bound jobs (such as finding the first 300 prime numbers) have long CPU cycles and shorter I/O cycles.

Total effect of all CPU cycles, from both I/O-bound and CPU-bound jobs, approximates a Poisson distribution curve.


-------


 
 
 
 
 
Untitled Document
Unlimited calls
Click here

Law firm System
Klik sini
http://www.lawmais.com/secure/images/lawmais.png
Dakwah tanggugjawab kita
Nabi menangis mengenangkan umatnya. Kasihanilah mereka yang masih tidak dapat mengenal Allah. Bantulah mereka....



Tadarus Hafazan
Tadarus Hafazan Sudah bermula. Sila hubungi admin jika ingin menyertai. Yuran adalah percuma. Klik sini untuk maklumat lanjut


 
 
Untitled Document
Copyright © 2010 roslanjam@yahoo.com. All Rights Reserved.
Guest online: 3